package com.kate.cloud.shiro.util;


import com.kate.cloud.shiro.vo.ResultVO;

/**
 * Created by 李金照 on 2017/12/13.
 *
 * @author 金照
 */
public class ResultVOUtil {
    public static ResultVO success(Object object){
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(0);
        resultVO.setMsg("success");
        resultVO.setData(object);
        return resultVO;
    }
    public static ResultVO error(String msg){
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(1);
        resultVO.setMsg(msg);
        return resultVO;
    }
}
